var fullwidth=1200,_lightbox_variations=[],_count_wishlist_items=0,searchProducts=null,_nasa_cart={},ns_close_svg='',ns_check_svg='',ns_arr_down='',ns_arr_up='',_confetti_run=!1;if("undefined"==typeof _cookie_live)var _cookie_live=7;jQuery(document).ready(function(a){"use strict";if("undefined"==typeof e)var e=Date.now();if("undefined"==typeof n)var n=a(".nasa-check-reponsive.nasa-switch-check").length&&1===a(".nasa-check-reponsive.nasa-switch-check").width()?!0:!1;if("undefined"==typeof t)var t=a(".nasa-check-reponsive.nasa-tablet-check").length&&1===a(".nasa-check-reponsive.nasa-tablet-check").width()?!0:!1;if("undefined"==typeof s)var s=a("body").hasClass("nasa-in-mobile")?!0:!1;a('input[name="nasa-cookie-time"]').length&&(_cookie_live=parseInt(a('input[name="nasa-cookie-life"]').val())),a.cookie("nasa_curent_per_shipping",0,{expires:_cookie_live,path:"/"}),a("#nasa-before-load").length&&a("#nasa-before-load").fadeOut(100);var i=a(".gpnf-nested-form").length?!0:!1;a("html").hasClass("html-ready")||i?i&&a("#wrapper").length&&a("#wrapper").addClass("html-ready"):a("html").addClass("html-ready"),a("body").removeClass("crazy-loading");var o=location.hash||null;if(o){if(a('a[href="'+o+'"], a[data-id="'+o+'"], a[data-target="'+o+'"]').length&&setTimeout(function(){a('a[href="'+o+'"], a[data-id="'+o+'"], a[data-target="'+o+'"]').trigger("click")},500),a(o).length){if((a(o).parents("#comments").length||"#comments"===o)&&a(".woocommerce-review-link").length){var r=a("body").find(".ns-tab-item .nasa-content-reviews"),c=r.parents(".ns-tab-item");r.parents(".ns-tab-item").css({"max-height":"fit-content"}),setTimeout(function(){a(".woocommerce-review-link").trigger("click"),a(c).removeAttr("style")},10)}setTimeout(function(){a(".ns-tab-reviews").find(".ns-btn-read-more").trigger("click"),a("body").trigger("nasa_animate_scroll_to_top",[a,o,500])},1e3)}var l=o.replace("#","");a('a[data-index="nasa-section-'+l+'"]').length&&setTimeout(function(){a('a[data-index="nasa-section-'+l+'"]').trigger("click")},500),a(".nasa-section-"+l).length&&setTimeout(function(){a("body").trigger("nasa_animate_scroll_to_top",[a,'a[data-index="nasa-section-'+l+'"]',500])},1e3)}a("body").on("nasa_after_load_mobile_menu",function(){a(".nasa-off-canvas").length&&a(".nasa-off-canvas").remove();var e="",n="",t="";if(a(".ns-menu-heading").length<=0?(a("#mobile-navigation").find(".nasa-menu-heading").length&&(t+='
",a("#mobile-navigation").find(".nasa-menu-heading").remove()),""!==t&&a("#mobile-navigation").before(t)):a("#mobile-navigation").find(".nasa-menu-heading").length&&a("#mobile-navigation").find(".nasa-menu-heading").remove(),a(".ns-acc-langs").length<=0){if(a("#mobile-navigation").find(".nasa-m-account").length&&(e+=''+a("#mobile-navigation").find(".nasa-m-account").html()+"
",a("#mobile-navigation").find(".nasa-m-account").remove()),a("#mobile-navigation").find(".nasa-select-languages").length&&(n+=''+a("#mobile-navigation").find(".nasa-select-languages").html()+"",a("#mobile-navigation").find(".nasa-select-languages").remove(),a("#mobile-navigation").find(".nasa-select-languages")),a("#mobile-navigation").find(".nasa-select-currencies").length&&(n+=''+a("#mobile-navigation").find(".nasa-select-currencies").html()+"",a("#mobile-navigation").find(".nasa-select-currencies").remove()),""!==n&&(e+='"),""!==e&&(e='",a("#mobile-navigation").before(e),!a(".ns-sub-multilangs .nasa-sub-select-currencies a").hasClass("accordion"))){var s='';a(".ns-sub-multilangs .nasa-sub-select-currencies").append(s),a(".ns-sub-multilangs .nasa-sub-select-currencies .nav-dropdown-mobile").hide()}a(".nasa-menusub-for-mobile .li_accordion a.accordion").length&&a(".nasa-menusub-for-mobile .li_accordion a.accordion").append(ns_arr_up)}else a("#mobile-navigation").find(".nasa-m-account").length&&a("#mobile-navigation").find(".nasa-m-account").remove(),a("#mobile-navigation").find(".nasa-select-languages").length&&a("#mobile-navigation").find(".nasa-select-languages").remove(),a("#mobile-navigation").find(".nasa-select-currencies").length&&a("#mobile-navigation").find(".nasa-select-currencies").remove()});var d=a("#header-content").length?a("#header-content").height():0;a(window).on("scroll",function(){var e=a(this).scrollTop(),n=a(".woocommerce-tabs .nasa-scroll-titles"),t=a(".nasa-check-reponsive.nasa-switch-check").length&&1===a(".nasa-check-reponsive.nasa-switch-check").width()?!0:!1,s=a("body").hasClass("nasa-in-mobile")?!0:!1,i=a(window).height(),o=a("#nasa-footer").length?a("#main-content").outerHeight()+a("#nasa-footer").outerHeight():a("#main-content").outerHeight(),r=a("body").attr("data-elementor-device-mode");if(a("body").find(".nasa-header-sticky").length&&a(".sticky-wrapper").length&&a(n).length<=0&&o>i){var c=a("#wpadminbar").length?a("#wpadminbar").height():0,l=a(".nasa-promo-bg").length?a(".nasa-promo-bg").height():0,p=a(".nasa-topbar-wrap").length?a(".nasa-topbar-wrap").height():0,h=a(".sticky-wrapper").outerHeight(),g=Math.round(l+p)>0?l+p:d;if(Math.round(e)>Math.round(g)?a(".sticky-wrapper").hasClass("fixed-already")||(a(".sticky-wrapper").addClass("fixed-already"),a(".sticky-wrapper").hasClass("product-header")||(a(".nasa-header-sticky").css({"margin-bottom":h}),(a(".nasa-header-sticky").hasClass("header-type-2")||a(".nasa-header-sticky").hasClass("header-type-3")||a(".nasa-header-sticky").hasClass("header-type-4")||a(".nasa-header-sticky").hasClass("header-type-6"))&&setTimeout(function(){h=a(".sticky-wrapper").outerHeight(),a(".nasa-header-sticky").animate({"margin-bottom":h},100)},100)),c>0&&a(".sticky-wrapper").css({top:c})):(a(".sticky-wrapper").removeClass("fixed-already"),a(".nasa-header-sticky").removeAttr("style"),a(".sticky-wrapper").removeAttr("style"),h=a(".sticky-wrapper").outerHeight()),a(".nasa-product-details-page").hasClass("nasa-layout-modern-4")){var u="mobile"==r?0:c+h+30;a(".nasa-product-details-page").find(".ns-pos-sticky").css({top:u})}}var m=a(".checkout-modern-wrap");if(a(m).length){var f=a(m).find(".nasa-bc-modern"),v=a(".nasa-check-reponsive.nasa-switch-check").length&&1===a(".nasa-check-reponsive.nasa-switch-check").width()?!0:!1;v&&a(m).find(".checkout-modern-left-wrap").css("padding-top",f.outerHeight()+"px"),e>5?a(f).hasClass("fixed-already")||a(f).addClass("fixed-already"):a(f).removeClass("fixed-already")}if(a(".nasa-nav-extra-warp").length&&(e>d?a(".nasa-nav-extra-warp").hasClass("nasa-show")||a(".nasa-nav-extra-warp").addClass("nasa-show"):a(".nasa-nav-extra-warp").hasClass("nasa-show")&&a(".nasa-nav-extra-warp").removeClass("nasa-show")),a("#nasa-back-to-top").length){"undefined"!=typeof _&&_&&clearInterval(_);var _=setInterval(function(){var n=a(window).height()/2;e>n?a("#nasa-back-to-top").hasClass("nasa-show")||a("#nasa-back-to-top").addClass("nasa-show"):a("#nasa-back-to-top").removeClass("nasa-show"),clearInterval(_)},100)}if(a(".ns-sticky-scroll-sidebar").length&&a(".nasa-toggle-widgets-alc").length)if(t||s)a(".ns-sticky-scroll-sidebar").removeAttr("style");else{var b=null,w=0;if(a(".nasa-single-product-slide").length?b=a(".nasa-single-product-slide").offset():a(".nasa-products-page-wrap").length&&(b=a(".nasa-products-page-wrap").offset()),1===a(".fixed-already").length){var y=a(".fixed-already").outerHeight();w+=y}if(1===a("#wpadminbar").length){var k=a("#wpadminbar").outerHeight();w+=k}var C=b.top-w,x=e-C+10;x>=0?a(".ns-sticky-scroll-sidebar").css({top:w+10}):a(".ns-sticky-scroll-sidebar").removeAttr("style")}});var p;a(window).on("resize",function(){n=a(".nasa-check-reponsive.nasa-switch-check").length&&1===a(".nasa-check-reponsive.nasa-switch-check").width()?!0:!1,s=a("body").hasClass("nasa-in-mobile")?!0:!1,t=a(".nasa-check-reponsive.nasa-tablet-check").length&&1===a(".nasa-check-reponsive.nasa-tablet-check").width()?!0:!1;var e=a(".black-window").hasClass("desk-window");n||e||s||t||(a(".col-sidebar").length&&a(".col-sidebar").removeClass("nasa-active"),a(".warpper-mobile-search").length&&!a(".warpper-mobile-search").hasClass("show-in-desk")&&a(".warpper-mobile-search").removeClass("nasa-active"),a(".black-window").length&&a(".black-window").hide());var i=a("#wpadminbar").length?a("#wpadminbar").height():0;if(i>0&&a("#mobile-navigation").length&&(a("#nasa-menu-sidebar-content").css({top:i}),"1"===a("#mobile-navigation").attr("data-show")&&!n&&a(".nasa-menu-off").length<=0)){var o=a(window).scrollTop(),r=a("#header-content").height()+50;r>=o&&a(".black-window").trigger("click")}i>0&&a(".account-nav-wrap").length&&a(".account-nav-wrap").css({top:i}),a(".nasa-slide-style").length&&a(".nasa-slide-style").each(function(){var e=a(this);nasa_tab_slide_style(a,e,500)}),(n||s)&&("undefined"!=typeof p&&clearTimeout(p),p=setTimeout(function(){position_menu_mobile(a)},100))}),a("body").on("nasa_before_init_menu_mobile",function(){position_menu_mobile(a)}),a("body").on("nasa_check_template",function(e,n){a(n).find(".nasa-panel .nasa-tmpl").length&&(a(n).find(".nasa-panel").each(function(){a("body").trigger("nasa_render_template",[this])}),a("body").trigger("nasa_rendered_template")),e.preventDefault()}),a("body").hasClass("nasa-enable-wow")||a("body").on("nasa_after_changed_tab_content",function(e,n){e.preventDefault();var t=a(n).find(".nasa-slick-slider");a(t).length&&(a("body").trigger("nasa_unslick",[t]),a("body").trigger("nasa_load_slick_slider"))});var h=a.cookie("nasa_popup_closed");if("do-not-show"!==h&&a("#nasa-popup").length&&a("body").hasClass("open-popup")){var g=a("#nasa-popup"),u=parseInt(a(g).attr("data-delay"));u=u?1e3*u:300;var m="true"===a(g).attr("data-disable_mobile")?!0:!1;if(m&&a(window).width()<768)return;a(g).show().addClass("ns-ongoing"),setTimeout(function(){a("body").addClass("ovhd"),a(g).addClass("nasa-active"),a(".black-window").fadeIn(200).addClass("desk-window")},u),a("body").on("click",'#nasa-popup input[type="submit"]',function(){a(this).ajaxSuccess(function(e,n){"object"==typeof n&&"mail_sent"===n.responseJSON.status&&(a("body").append(''+n.responseJSON.message+"
"),a.cookie("nasa_popup_closed","do-not-show",{expires:_cookie_live,path:"/"}),setTimeout(function(){a("#nasa-newsletter-alert").fadeIn(300),setTimeout(function(){a("#nasa-newsletter-alert").fadeOut(500)},2e3)},300))})})}a("body").on("added_to_wishlist",function(){if("undefined"!=typeof nasa_ajax_params&&"undefined"!=typeof nasa_ajax_params.ajax_url){var e={};e.action="nasa_update_wishlist",e.added=!0,a(".nasa-value-gets").length&&a(".nasa-value-gets").find("input").length&&a(".nasa-value-gets").find("input").each(function(){var n=a(this).attr("name"),t=a(this).val();e[n]=t}),a.ajax({url:nasa_ajax_params.ajax_url,type:"post",dataType:"json",cache:!1,data:e,beforeSend:function(){},success:function(e){a(".wishlist_sidebar").replaceWith(e.list);var n=e.count.toString().replace("+",""),t=parseInt(n);a(".nasa-mini-number.wishlist-number").html(e.count),t>0?a(".nasa-mini-number.wishlist-number").removeClass("nasa-product-empty"):0!==t||a(".nasa-mini-number.wishlist-number").hasClass("nasa-product-empty")||a(".nasa-mini-number.wishlist-number").addClass("nasa-product-empty"),a("#yith-wcwl-popup-message").length&&"undefined"!=typeof e.mess&&""!==e.mess&&(a(".nasa-close-notice").length&&a(".nasa-close-notice").trigger("click"),a("#yith-wcwl-popup-message").html(e.mess),a("#yith-wcwl-popup-message").fadeIn(),setTimeout(function(){a("#yith-wcwl-popup-message").fadeOut()},2e3)),setTimeout(function(){init_wishlist_icons(a,!0),a(".btn-wishlist").removeClass("nasa-disabled")},350)},error:function(){a(".btn-wishlist").removeClass("nasa-disabled")}})}}),a("body").on("removed_from_wishlist",function(){var e=a(".wishlist_table"),n=a(e).find(".wishlist-items-wrapper [data-row-id]").length;a(".ns-mini-yith-wcwl .nasa-wishlist-count").html(n),0>=n&&a(".ns-mini-yith-wcwl .nasa-wishlist-count").addClass("nasa-product-empty")}),a("body").find("input.qty:not(.product-quantity input.qty)").each(function(){var e=parseFloat(a(this).attr("min"));e&&e>0&&parseFloat(a(this).val())i)?(e.val(i),t&&t.length&&t.attr("data-quantity",i)):(e.val(s+parseFloat(r)),t&&t.length&&t.attr("data-quantity",s+parseFloat(r))):o&&(o==s||o>s)?(e.val(o),t&&t.length&&t.attr("data-quantity",o)):s>0&&(e.val(s-parseFloat(r)),t&&t.length&&t.attr("data-quantity",s-parseFloat(r))),e.trigger("change")}),a("body").on("click",".mobile-search",function(){if(a(".black-window").fadeIn(200).addClass("desk-window"),a("body").hasClass("m-ovhd")||a("body").addClass("m-ovhd"),a(".warpper-mobile-search").length){var e=a(".warpper-mobile-search");if(a("#tmpl-nasa-mobile-search").length){var n=a("#tmpl-nasa-mobile-search").html();a(e).html(n),a("#tmpl-nasa-mobile-search").remove()}if(a(e).find(".nasa-tmpl-search-mobile").length){var n=a(e).find(".nasa-tmpl-search-mobile").html();a(e).find(".nasa-tmpl-search-mobile").replaceWith(n)}}var t=a("#wpadminbar").length?a("#wpadminbar").height():0;t>0&&a(".warpper-mobile-search").css({top:t}),a(".warpper-mobile-search").hasClass("nasa-active")||a(".warpper-mobile-search").addClass("nasa-active"),setTimeout(function(){a(".warpper-mobile-search").find("label").length&&a(".warpper-mobile-search").find("label").trigger("click")},210)}),a("body").on("focus",'input[name="s"]',function(){var e=a(this).parents(".search-wrapper"),n=a(e).find(".nasa-close-search-mobile");a(n).length&&!a(n).hasClass("nasa-active")&&a(n).addClass("nasa-active")}),a('input[name="nasa_cart_sidebar_show"]').length&&"1"===a('input[name="nasa_cart_sidebar_show"]').val()&&(a(window).trigger("resize"),setTimeout(function(){a(".cart-link").trigger("click")},300)),a("body").on("nasa_processed_wishlist",function(){a(".nasa-tr-wishlist-item").length<=0&&a(".ns-cart-popup-wrap.nasa-active").length<=0&&a(".black-window").trigger("click")}),a("body").on("click",".black-window, .white-window, .transparent-desktop, .transparent-mobile, .transparent-window, .nasa-close-mini-compare, .nasa-sidebar-close a, .nasa-sidebar-return-shop, .login-register-close, .nasa-close-menu-mobile",function(){if(!a("#nasa-age-verification-popup-wrap.nasa-active").length){if(n=a(".nasa-check-reponsive.nasa-switch-check").length&&1===a(".nasa-check-reponsive.nasa-switch-check").width()?!0:!1,s=a("body").hasClass("nasa-in-mobile")?!0:!1,a(".black-window").removeClass("desk-window"),a(".transparent-window").removeClass("desk-window"),a(".transparent-mobile").removeClass("desk-window"),a("#mobile-navigation").length&&"1"===a("#mobile-navigation").attr("data-show")&&(a("#nasa-menu-sidebar-content").length&&a("#nasa-menu-sidebar-content").removeClass("nasa-active"),a("#mobile-navigation").attr("data-show","0"),setTimeout(function(){a(".black-window").removeClass("nasa-transparent")},1e3)),a(".warpper-mobile-search").length&&(a(".warpper-mobile-search").removeClass("nasa-active"),a(".warpper-mobile-search").hasClass("show-in-desk")&&setTimeout(function(){a(".warpper-mobile-search").removeClass("show-in-desk")},600)),a(".nasa-single-product-in-mobile form.cart.variations_form.ns-show .ns-form-close").length&&(a(".nasa-single-product-in-mobile .nasa-node-content.ns-actived").length<=0?a(".nasa-single-product-in-mobile form.cart.variations_form.ns-show .ns-form-close").trigger("click"):a(".black-window").addClass("desk-window")),a("#review_form_wrapper.ns-show .ns-form-close").length&&a("#review_form_wrapper.ns-show .ns-form-close").trigger("click"),a(".nasa-node-content.ns-actived .ns-node-close").length&&a(".nasa-node-content.ns-actived .ns-node-close").trigger("click"),a(".nasa-product-360-degree.ns-actived").length&&a(".nasa-product-360-degree.ns-actived .close-360-degree").trigger("click"),a(".nasa-popup-exit-intent-wrap .nasa-popup-exit-intent-close").length&&a(".nasa-popup-exit-intent-wrap .nasa-popup-exit-intent-close").trigger("click"),a(".nasa-promo-popup-wrap .nasa-popup-close").length&&a(".nasa-promo-popup-wrap .nasa-popup-close").trigger("click"),a(".col-sidebar").length&&a(".col-sidebar").removeClass("nasa-active"),a(".account-nav-wrap").length&&a(".account-nav-wrap").removeClass("nasa-active"),a(".dokan-store-sidebar").length&&a(".dokan-store-sidebar").removeClass("nasa-active"),a(".ns-cart-popup-wrap").length&&a(".ns-cart-popup-wrap").hasClass("nasa-active")&&a(".ns-cart-popup-wrap").find(".popup-cart-close").trigger("click"),a("#cart-sidebar").length&&(a("#cart-sidebar").removeClass("nasa-active"),a("#cart-sidebar .close-nodes").length&&a("#cart-sidebar .close-nodes").trigger("click")),a("#nasa-wishlist-sidebar").length&&a("#nasa-wishlist-sidebar").removeClass("nasa-active"),a("#nasa-viewed-sidebar").length&&a("#nasa-viewed-sidebar").removeClass("nasa-active"),a("#nasa-quickview-sidebar").length&&a("#nasa-quickview-sidebar").removeClass("nasa-active"),a("#nasa-quickview-popup").length&&a("#nasa-quickview-popup").find(".nasa-quickview-popup-close").trigger("click"),a(".nasa-top-cat-filter-wrap-mobile").length&&a(".nasa-top-cat-filter-wrap-mobile").removeClass("nasa-show"),a(".nasa-side-sidebar").length&&a(".nasa-side-sidebar").removeClass("nasa-show"),a(".nasa-top-sidebar").length&&a(".nasa-top-sidebar").removeClass("nasa-active"),a(".nasa-login-register-warper").length&&(a(".nasa-login-register-warper").removeClass("nasa-active"),a(".nasa-login-register-warper").find(".nasa-congrat").length&&window.location.reload(),setTimeout(function(){a(".nasa-login-register-warper").hide()},350)),a(".nasa-current-lang").length){var e=a(".nasa-current-lang").parents(".nasa-select-languages");a(e).length&&a(e).removeClass("nasa-active")}if(a(".wcml-cs-item-toggle").length){var t=a(".wcml-cs-item-toggle").parents(".nasa-select-currencies");a(t).length&&a(t).removeClass("nasa-active")}a(".checkout-modern-wrap .woocommerce-form-login").hasClass("nasa-active")&&a(".checkout-modern-wrap .woocommerce-form-login-toggle .showlogin").trigger("click"),a(".nasa-push-cat-filter-type-3 .ns-top-bar-side-canvas").hasClass("nasa-push-cat-show")&&a(".nasa-top-bar-3-content a.nasa-tab-filter-topbar").trigger("click"),hide_compare(a),a("body").removeClass("ovhd"),a("body").removeClass("m-ovhd"),a("body").trigger("nasa_after_close_fog_window"),a(".nasa-mobile-app form.cart.variations_form.ns-show").length<=0&&(a(".white-window, .transparent-mobile, .transparent-window, .transparent-desktop").fadeOut(1e3),a(".black-window").fadeOut(500))}}),a(document).on("keyup",function(e){27===e.keyCode&&(a(".nasa-tranparent").trigger("click"),a(".nasa-tranparent-filter").trigger("click"),a(".black-window, .white-window, .transparent-desktop, .transparent-mobile, .transparent-window, .nasa-close-mini-compare, .nasa-sidebar-close a, .login-register-close, .nasa-transparent-topbar, .nasa-close-filter-cat").trigger("click"),a("body").trigger("nasa_after_clicked"),a("body").trigger("ns_magnific_popup_close")),e.preventDefault()}),a("body").on("click",'form.cart button[type="submit"].single_add_to_cart_button',function(){a(".nasa-close-notice").trigger("click");var e=!0,n=a(this),t=a(n).parents("form.cart");a("body").trigger("nasa_before_click_single_add_to_cart",[t]),a(t).find("#yith_wapo_groups_container").length&&(a(t).find('input[name="nasa-enable-addtocart-ajax"]').remove(),a(t).find('.nasa-custom-fields input[name="nasa_cart_sidebar"]').length?a(t).find('.nasa-custom-fields input[name="nasa_cart_sidebar"]').val("1"):a(t).find(".nasa-custom-fields").append(''));var s=a(t).find('input[name="nasa-enable-addtocart-ajax"]');if(a(s).length<=0||"1"!==a(s).val())return e=!1,void 0;var i=a(n).hasClass("disabled")||a(n).hasClass("nasa-ct-disabled")?!0:!1,o=i?!1:a(t).find('input[name="data-product_id"]').val();if(o&&!a(n).hasClass("loading")){var r=a(t).find('input[name="data-type"]').val(),c=a(t).find('.quantity input[name="quantity"]').val(),l=a(t).find('input[name="variation_id"]').length?parseInt(a(t).find('input[name="variation_id"]').val()):0,d={},p={},h=1===a(t).find('input[name="data-from_wishlist"]').length&&"1"===a(t).find('input[name="data-from_wishlist"]').val()?"1":"0";if("variable"===r&&!l)return e=!1,!1;l>0&&a(t).find(".variations").length&&(a(t).find(".variations").find("select").each(function(){d[a(this).attr("name")]=a(this).val()}),a(".wishlist_table").length&&a(".wishlist_table").find("tr#yith-wcwl-row-"+o).length&&(p={from_wishlist:h,wishlist_id:a(".wishlist_table").attr("data-id"),pagination:a(".wishlist_table").attr("data-pagination"),per_page:a(".wishlist_table").attr("data-per-page"),current_page:a(".wishlist_table").attr("data-page")})),e&&a("body").trigger("nasa_single_add_to_cart",[n,o,c,r,l,d,p])}return!1}),a("body").on("click",".nasa_bundle_add_to_cart",function(e){var n=a(this),t=a(n).attr("data-product_id");if(t){var s=a(n).attr("data-type"),i=a(n).attr("data-quantity"),o=0,r={},c={};a("body").trigger("nasa_single_add_to_cart",[n,t,i,s,o,r,c])}e.preventDefault()}),a("body").on("click",".product_type_variation.add-to-cart-grid",function(e){var n=a(this);if(a(n).hasClass("nasa-quick-add")&&!a(n).hasClass("nasa-modern-8-add")){var t=a(n).parents(".product-item");a(t).addClass("nasa-modern-8-var-active")}else if(!a(n).hasClass("nasa-disable-ajax")){if(!a(n).hasClass("loading")){var s=a(n).attr("data-product_id");if(s){var i="variation",o=a(n).attr("data-quantity"),r=0,c=null,l={};if("undefined"!=typeof a(n).attr("data-variation_id")&&(r=a(n).attr("data-variation_id")),"undefined"!=typeof a(n).attr("data-variation")&&(c=JSON.parse(a(n).attr("data-variation"))),c)a("body").trigger("nasa_single_add_to_cart",[n,s,o,i,r,c,l]);else{var d=a(n).attr("href");window.location.href=d}}}return!1}e.preventDefault()}),a("body").on("click",".product_type_variable",function(e){e.preventDefault();var n=a(this);if(a("body").hasClass("ns-wcdfslsops")){var t=a(n).attr("href");t&&(window.location.href=t)}else{var s=a(n).parents(".product-item");if(a("body").hasClass("nasa-quickview-on")){if(!a(n).hasClass("add-to-cart-grid")||a(n).parents(".nasa-table-compare").length||a(n).parents(".compare-list").length||a(n).parents(".product-deal-special-buttons").length){var t=a(n).attr("href");return t&&(window.location.href=t),void 0}if(a(n).hasClass("btn-from-wishlist")){var s=a(n).parents(".add-to-cart-wishlist");a(s).length&&a(s).find(".quick-view").length&&a(s).find(".quick-view").trigger("click")}else if(a(n).hasClass("nasa-before-click"))a("body").trigger("nasa_after_click_select_option",[n]);else if(a(n).hasClass("nasa-quick-add")&&!a(".nasa-content-page-products .products").hasClass("list")){if(a(s).hasClass("out-of-stock")){var t=a(n).attr("href");return t&&(window.location.href=t),void 0}a("body").trigger("nasa_after_click_quick_add",[n])}else a(s).find(".variations_form").length&&!a(".nasa-content-page-products .products").hasClass("list")?a(s).addClass("ns-var-active"):a(s).find(".quick-view").trigger("click");return!1}if(a(n).hasClass("nasa-before-click"))return a("body").trigger("nasa_after_click_select_option",[n]),!1;if(a(n).hasClass("nasa-quick-add")&&!a(".nasa-content-page-products .products").hasClass("list")){if(a(s).hasClass("out-of-stock")){var t=a(n).attr("href");return t&&(window.location.href=t),void 0}a("body").trigger("nasa_after_click_quick_add",[n])}else{if(!a(s).find(".variations_form").length||a(".nasa-content-page-products .products").hasClass("list")){var t=a(n).attr("href");return t&&(window.location.href=t),void 0}a(s).addClass("ns-var-active")}}}),a("body").on("wc_fragments_loaded",function(e){a("#cart-sidebar .woocommerce-mini-cart-item").length<=0&&(_confetti_run=!1,a(".black-window").trigger("click"),a.cookie("nasa_curent_per_shipping",0,{expires:_cookie_live,path:"/"})),a("body").trigger("mini_cart_mobile_layout_change"),a("body").hasClass("woocommerce-checkout")&&a("body").trigger("update_checkout"),e.preventDefault()}),a("body").on("updated_wc_div",function(e){init_shipping_free_notification(a,!0),init_nasa_notices(a),e.preventDefault()});var f;if(a("body").on("adding_to_cart",function(e){a(".nasa-close-notice").length&&a(".nasa-close-notice").trigger("click"),"undefined"!=typeof f&&clearTimeout(f),e.preventDefault()}),a("body").on("added_to_cart",function(e,n,t,s){a("body").trigger("ns_magnific_popup_close");var i=a('input[name="nasa-event-after-add-to-cart"]').length&&a('input[name="nasa-event-after-add-to-cart"]').val()?a('input[name="nasa-event-after-add-to-cart"]').val():"sidebar",o=a("#cart-sidebar"),r=a(o).hasClass("nasa_update_from_mini_cart")?!0:!1;a("#cart-sidebar .widget_shopping_cart_content_frag").remove(),"undefined"==typeof s&&(i="sidebar"),a("form.woocommerce-cart-form, form.woocommerce-checkout").length&&(i="notice"),("popup"===i||"popup_2"===i)&&a("form.nasa-shopping-cart-form, form.woocommerce-checkout").length<=0&&!r&&(after_added_to_cart(a),setTimeout(function(){init_shipping_free_notification(a,!0)},500)),("sidebar"===i||r)&&(a('input[name="ns-not-preload-mcart"]').length&&(a(".black-window").fadeIn(200).addClass("desk-window"),a("#nasa-wishlist-sidebar").removeClass("nasa-active"),a("#cart-sidebar").length&&!a("#cart-sidebar").hasClass("nasa-active")&&a("#cart-sidebar").addClass("nasa-active")),a("body").trigger("nasa_opened_cart_sidebar"),a("#cart-sidebar").removeClass("crazy-loading nasa_update_from_mini_cart"),setTimeout(function(){init_shipping_free_notification(a,!0)},50)),"notice"===i&&"undefined"!=typeof n[".woocommerce-message"]&&(a(".nasa-close-notice").length&&a(".nasa-close-notice").trigger("click"),set_nasa_notice(a,n[".woocommerce-message"]),"undefined"!=typeof f&&clearTimeout(f),f=setTimeout(function(){a(".nasa-close-notice").length&&a(".nasa-close-notice").trigger("click")},5e3)),e.preventDefault()}),a("body").on("change",".after-add-to-cart-form.qty-auto-update .qty",function(){var e=a(this).parents("form.after-add-to-cart-form");a(e).find(".nasa-update-cart-popup").length&&(a(e).find(".nasa-update-cart-popup").removeClass("nasa-disable"),a(e).find(".nasa-update-cart-popup").trigger("click"))}),a("body").on("nasa_after_clicked",function(){a(".nasa-close-canvas").length&&a(".nasa-close-canvas").trigger("click")}),a("body").on("nasa_animate_scroll_to_top",function(a,e,n,t){a.preventDefault(),animate_scroll_to_top(e,n,t)}),a("body").on("click","form.cart .nasa-buy-now",function(e){if(!a(this).hasClass("loading")){a(this).addClass("loading");var n=a(this).parents("form.cart");a(n).find('button[type="submit"].single_add_to_cart_button.disabled').length?(a(".nasa-buy-now").removeClass("loading"),a(n).find('button[type="submit"].single_add_to_cart_button.disabled').trigger("click")):a(n).find('input[name="nasa_buy_now"]').length&&(a('input[name="nasa-enable-addtocart-ajax"]').length&&a('input[name="nasa-enable-addtocart-ajax"]').val("0"),a(n).find('input[name="nasa_buy_now"]').val("1"),setTimeout(function(){a(n).find('button[type="submit"].single_add_to_cart_button').trigger("click")},10))}e.preventDefault()}),a(".nasa-total-condition").length&&setTimeout(function(){init_shipping_free_notification(a)},1e3),a(".nasa-cookie-notice-container").length){var v=a.cookie("nasa_gdpr_notice");"undefined"!=typeof v&&v&&"0"!==v||setTimeout(function(){a(".nasa-cookie-notice-container").addClass("nasa-active")},1e3),a("body").on("click",".nasa-accept-cookie",function(e){a.cookie("nasa_gdpr_notice","1",{expires:_cookie_live,path:"/"}),a(".nasa-cookie-notice-container").removeClass("nasa-active"),e.preventDefault()})}if(a("body").on("nasa_after_loaded_ajax_complete",function(e,n,t){e.preventDefault(),after_load_ajax_list(a,n),init_accordion(a),t||init_menu_mobile(a,!0)}),a("body").on("nasa_single_add_to_cart",function(e,n,t,s,i,o,r,c){nasa_single_add_to_cart(a,n,t,s,i,o,r,c),e.preventDefault()}),a(".nasa-trigger-click").length&&setTimeout(function(){a(".nasa-trigger-click").trigger("click")},100),a(".header-type-builder").length&&a(".nasa-nav-extra-warp").length<=0&&a("body").append(''),a("body").on("nasa_append_style_off_canvas",function(e){if(a("#nasa-style-off-canvas").length&&a("#nasa-style-off-canvas-css").length<=0){var n=a("#nasa-style-off-canvas").attr("data-link"),t='';a("head").append(t),a("#nasa-style-off-canvas").remove()}e.preventDefault()}),a("body").on("nasa_append_style_mobile_menu",function(e){if(a("#nasa-style-mobile-menu").length&&a("#nasa-style-mobile-menu-css").length<=0){var n=a("#nasa-style-mobile-menu").attr("data-link"),t='';a("head").append(t),a("#nasa-style-mobile-menu").remove()}e.preventDefault()}),a("body").on("nasa_append_style_cross_sell_cart",function(e){if(a("#cross-sell-popup-cart-style").length&&a("#cross-sell-popup-cart-style-css").length<=0){var n=a("#cross-sell-popup-cart-style").attr("data-link"),t='';a("head").append(t),a("#cross-sell-popup-cart-style").remove()}e.preventDefault()}),"undefined"!=typeof nasa_ajax_params&&"undefined"!=typeof nasa_ajax_params.wc_ajax_url){var _=nasa_ajax_params.wc_ajax_url.toString().replace("%%endpoint%%","nasa_ajax_static_content"),b={},w=!1;a('input[name="nasa_yith_wishlist_actived"]').length&&(b.reload_yith_wishlist="1",w=!0),w&&(a(".nasa-value-gets").length&&a(".nasa-value-gets").find("input").length&&a(".nasa-value-gets").find("input").each(function(){var e=a(this).attr("name"),n=a(this).val();
b[e]=n}),a.ajax({url:_,type:"post",data:b,cache:!1,success:function(e){"undefined"!=typeof e&&"1"===e.success&&a.each(e.content,function(e,n){a(e).length&&(a(e).replaceWith(n),"#nasa-wishlist-sidebar-content"===e&&init_wishlist_icons(a))}),a("body").trigger("nasa_after_load_static_content")}}))}a(".vertical-menu-wrapper").length&&(a(".vertical-menu-wrapper").attr("data-over","0"),a(".vertical-menu-container").each(function(){var e=a(this),n=a(e).height();a(e).find(".nasa-megamenu >.nav-dropdown").each(function(){a(this).find(">.sub-menu").css({"min-height":n})})})),init_accordion(a),a(".nasa-tabs.nasa-slide-style").length&&setTimeout(function(){a(".nasa-slide-style").each(function(){var e=a(this);nasa_tab_slide_style(a,e,500)})},500),a(".nasa-active").length&&a(".nasa-active").each(function(){a(this).parents(".nasa-show-less").length&&a(this).parents(".nasa-show-less").show()}),init_mini_wishlist(a),init_wishlist_icons(a),init_compare_icons(a,!0),init_widgets(a),a(window).on("pageshow",function(){setTimeout(function(){a(".widget_shopping_cart_content").find(">*").length<=0&&(a("#cart-sidebar").append(''),a("body").trigger("wc_fragment_refresh"))},100)});var y=!1;if(a("body").on("wc_fragments_ajax_error",function(){y||(y=!0,a(".widget_shopping_cart_content").find(">*").length<=0&&(a("#cart-sidebar").append(''),a("body").trigger("wc_fragment_refresh")))}),a("body").on("wc_fragments_refreshed",function(){init_shipping_free_notification(a,!0),a("body").trigger("mini_cart_mobile_layout_change"),a("#cart-sidebar").length&&a("#cart-sidebar").find(".nasa-loader").remove()}),a("body").on("nasa_init_shipping_free_notification",function(){init_shipping_free_notification(a)}),a("body").on("nasa_before_load_ajax",function(e){a(".cart-inner").length&&a(".cart-inner").each(function(){return _nasa_cart[".cart-inner"]=a(this),!0}),e.preventDefault()}),a("body").on("nasa_after_load_ajax",function(e){"undefined"!=typeof _nasa_cart[".cart-inner"]&&a(".cart-inner").replaceWith(_nasa_cart[".cart-inner"]),init_mini_wishlist(a),init_compare_icons(a,!0),e.preventDefault()}),a("body").hasClass("woocommerce-cart")||a(".woocommerce-notices-wrapper").each(function(){var e=a(this);setTimeout(function(){a(e).find("a").length<=0&&a(e).html(""),a(e).find(".woocommerce-message").length&&a(e).find(".woocommerce-message").each(function(){a(this).find("a").length<=0&&a(this).fadeOut(200)})},3e3)}),init_nasa_notices(a),a("#nasa-age-verification-popup-tmp").length&&(a("body").on("nasa_age_verification",function(){var e=a.cookie("nasa_age_verification_ck");if("true"!==e){if(a("body").trigger("nasa_append_style_off_canvas"),a("#nasa-age-verification-popup-tmp").length){var n=a("#nasa-age-verification-popup-tmp").html();a("#nasa-age-verification-popup-tmp").replaceWith(n)}setTimeout(function(){a("#nasa-age-verification-popup-wrap").length&&(a("#nasa-age-verification-popup-wrap").addClass("nasa-active nasa-trs"),a(".black-window").fadeIn(200).addClass("desk-window"),a("body").hasClass("ovhd")||a("body").addClass("ovhd"))},1e3)}}).trigger("nasa_age_verification"),a("body").on("click",".nasa-over-18, .nasa-under-18",function(){var e=a(this),n=a(e).parents("#nasa-age-verification-popup-wrap"),t=!1;a(e).hasClass("nasa-under-18")?a(n).addClass("ns-restricted"):(t=!0,a(n).removeClass("nasa-active"),a("body").removeClass("ovhd"),a(".black-window").fadeOut(200).removeClass("desk-window"),setTimeout(function(){a(n).remove()},400)),a.cookie("nasa_age_verification_ck",t,{expires:_cookie_live,path:"/"})})),a("#wpadminbar").length){var k=a("#wpadminbar").height();a("head").append(""),a("#cart-sidebar, #nasa-wishlist-sidebar, #nasa-viewed-sidebar, #nasa-quickview-sidebar, .nasa-top-cat-filter-wrap-mobile, .nasa-side-sidebar, .account-nav-wrap").css({top:k}),(n||s||t)&&a(".col-sidebar").css({top:k}),a(window).on("resize",function(e){n=a(".nasa-check-reponsive.nasa-switch-check").length&&1===a(".nasa-check-reponsive.nasa-switch-check").width()?!0:!1,t=a(".nasa-check-reponsive.nasa-tablet-check").length&&1===a(".nasa-check-reponsive.nasa-tablet-check").width()?!0:!1,k=a("#wpadminbar").height(),a("#cart-sidebar, #nasa-wishlist-sidebar, #nasa-viewed-sidebar, #nasa-quickview-sidebar, .nasa-top-cat-filter-wrap-mobile, .nasa-side-sidebar .account-nav-wrap").css({top:k}),(n||s||t)&&a(".col-sidebar").css({top:k}),e.preventDefault()})}a("body").hasClass("ns-nodelay-assets")||a(window).on("touchstart scroll resize mousemove",function(){if(a("[type=nasa_delay_script]").length){var e=document.getElementsByTagName("body")[0];a("[type=nasa_delay_script]").each(function(){var n=a(this),t=a(n).attr("src"),s=a(n).attr("id"),i=a(n).text(),o=document.createElement("script");o.type="text/javascript",o.text=i,"undefined"!=typeof t&&(o.src=t),"undefined"!=typeof s&&(o.id=s),e.appendChild(o),a(n).remove()})}a("body").trigger("nasa_append_style_mobile_menu"),a("body").trigger("nasa_append_style_off_canvas")}),a("body").on("nasa-content-promotion-auto-slide",function(){var e=a(".nasa-content-promotion-custom");if(a(e).length&&a(e).hasClass("nasa-promo-silde")){var n={slidesToShow:1,slidesToScroll:1,autoplay:!0,infinite:!0,autoplaySpeed:5e3,speed:500,arrows:!1,dots:!1,adaptiveHeight:!0,vertical:!0,verticalSwiping:!0};a("body").trigger("nasa_element_slick_params",[e,n])}})});